﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using VeMayBayDTO;
namespace VeMayBayDAO
{
    public class UserDAO
    {
        public static bool GetUser(UserDTO us )
        {

            string query = "select * from [User] where username ='"+us.UserName+"' and password='"+us.Pass+"'";
            DataTable data = DataProvider.ExecQuery(query);
            DataTable dt = new DataTable();
            dt = data;
            if (dt.Rows.Count>0)
            {
                return true;
            }
            return false;
        }
    }
}
